package April.april28;

public class Person {
    public String name;
    public String ID;

    public static void seelp(String name,int age,double time){
        System.out.println("人在睡觉"+name+"    年龄是"+age+"    睡了"+time);
    }

    public static void eat(){
        System.out.println("小明在吃饭");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", ID='" + ID + '\'' +
                '}';
    }

    public Person() {
    }

    public Person(String name, String ID) {
        this.name = name;
        this.ID = ID;
    }

    static {
        System.out.println("静态代码块");
    }

    public void setName(String name){
        this.name=name;
    }
    public void setID(String ID){
        this.ID=ID;
    }

    public String getName(){
        return name;
    }
    public String getID(){
        return ID;
    }
}
